{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/plugin.css?random={extendSetting('random')}">
<div class="ltcms_container">
    <div class="container_title">
        <form action="{LTCMS_ROUTE_PREFIX}/adminRole/index" method="get" class="ltcms_search">
            <input name="keyword" type="text" placeholder="请输入角色名" {if isset($request['keyword'])}
            value="{$request['keyword']}" {/if} >
            <button type="submit" class="btn3">搜索</button>
        </form>
    </div>
    <div class="ltcms_list">
        <table class="list_table">
            <col width="40px">
            <col width="60px">
            <col width="150px">
            <col width="60px">
            <col>
            <col width="120px">
            <tr>
                <td class="th"><input id="selectAll" type="checkbox"></td>
                <td class="th">id</td>
                <td class="th">角色名称</td>
                <td class="th">状态</td>
                <td class="th">描述</td>
                <td class="th">操作</td>
            </tr>
            {if $rowData}
            {foreach $rowData["data"] $key $val}
            <tr class="tr">
                <td><input class="checkbox" name="check_id" type="checkbox" value="{$val['id']}"></td>
                <td>{$val["id"]}</td>
                <td>{$val["name"]}</td>
                <td>{$val["status"]==1?"启用":"禁用"}</td>
                <td>{$val["description"]}</td>
                <td>
                    <div class="btn4">
                        <a href="{LTCMS_ROUTE_PREFIX}/adminRole/roleFuncBind?id={$val['id']}" title="功能绑定">
                            <i class='btn4-img iconfont icon-bangding'></i>
                        </a>
                        <a href="{LTCMS_ROUTE_PREFIX}/adminRole/edit?id={$val['id']}" title="编辑">
                            <i class='btn4-img iconfont icon-bianji'></i>
                        </a>
                        <i onClick="runApi(this)" title="删除"  data-close="4" data-submit-url="{LTCMS_ROUTE_PREFIX}/adminRole?id={$val['id']}" data-method="delete" alt="" class="btn4-img del iconfont icon-delete"></i>
                    </div>
                </td>
            </tr>
            {/foreach}
            {/if}
        </table>
    </div>
    <div class="list-bottom">
        <div class="bottom-left">
            <a href="{LTCMS_ROUTE_PREFIX}/adminRole/create"><button class="btn2 trash">添加</button></a>
            <button class="btn2 del1" onclick="dataMoreDel(this)" data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/adminRole?id=" data-method="delete"  >彻底删除</button>
        </div>
        <div class="pages">
            {if $rowData}
            {php echo app("P_page")->getPageBarV2($rowData);}
            {/if}
        </div>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/list.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}